﻿using System;
using System.Linq;
using Microsoft.SharePoint.Administration;
using System.Runtime.InteropServices;
using Microsoft.SharePoint;

namespace CodeCounsel.SharePoint.NavigationService
{
    [Guid("f46c5a6a-0f73-4c1e-b11b-c2ffb70c19f9")]
    public class NavigationApplication
        : SPServiceApplication
    {
        public override string TypeName
        {
            get { return "Navigation Application (Demo)"; }
        }

        public override string DisplayName
        {
            get { return "Global Navigation (Demo)"; }
        }

        public NavigationApplication()
        {
        }

        public NavigationApplication(NavigationService service)
            : base(String.Empty, service)
        {
        }

        public string GetNavigation()
        {
            return "Demo";
        }

        internal static NavigationApplication Create(NavigationService service)
        {
            return new NavigationApplication(service);
        }
    }
}
